package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-02
 */
@TableName("nb_my_gpc")
public class MyGpc extends Model<MyGpc> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("g_userid")
    private Integer gUserid;
    @TableField("g_scode")
    private String gScode;
    @TableField("g_tdate")
    private Date gTdate;
    @TableField("g_reason")
    private String gReason;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getgUserid() {
        return gUserid;
    }

    public void setgUserid(Integer gUserid) {
        this.gUserid = gUserid;
    }

    public String getgScode() {
        return gScode;
    }

    public void setgScode(String gScode) {
        this.gScode = gScode;
    }

    public Date getgTdate() {
        return gTdate;
    }

    public void setgTdate(Date gTdate) {
        this.gTdate = gTdate;
    }

    public String getgReason() {
        return gReason;
    }

    public void setgReason(String gReason) {
        this.gReason = gReason;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MyGpc{" +
        "id=" + id +
        ", gUserid=" + gUserid +
        ", gScode=" + gScode +
        ", gTdate=" + gTdate +
        ", gReason=" + gReason +
        "}";
    }
}
